package com.liuzihao.cloudAlibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2022-04-19 20:45
 * @Modified By:
 */
@RestController
@RefreshScope
public class ConfigController {

    @Value("${config.info}")
    String info;

    @GetMapping("test/getInfo")
    String getInfo(){
        return info;
    }
}
